Skip to content

smart routing: route cc with /model - #393

Open
lilly-luo wants to merge 23 commits into
mainfrom
claude-direct-model-switch
Open

smart routing: route cc with /model#393
lilly-luo wants to merge 23 commits into
mainfrom
claude-direct-model-switch

Conversation

@lilly-luo

@lilly-luo lilly-luo commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • route the first Claude prompt by typing /model <model> directly instead of navigating the model picker
  • snapshot and surgically restore only ~/.claude/settings.json's model field, with recovery journals for interrupted launches
  • launch ucode claude with the saved default via --model, while preserving explicit and routed model precedence
Screen.Recording.2026-08-25.at.6.12.22.PM.mov

Testing

  • uv run ruff check .
  • uv run ruff format --check src/ tests/
  • uv run pytest tests/test_agent_claude.py tests/test_claude_smart_routing_v2.py tests/test_cli.py -q (342 passed)

@lilly-luo
lilly-luo force-pushed the claude-direct-model-switch branch from d2b1246 to 88b2789 Compare August 25, 2026 22:20
@lilly-luo
lilly-luo changed the base branch from main to lilly/codex-switcher August 25, 2026 22:20
@lilly-luo lilly-luo changed the title Route Claude prompts with direct model commands smart routing: route cc with /model Aug 26, 2026
Base automatically changed from lilly/codex-switcher to main August 26, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant